package my.db.DTO;

public class AuthenticationDTO {
	private int accountID;
	private String accountName,accountPassword,position;
	private AuthorDTO autDTO;
	public AuthenticationDTO() {
		super();
	}
	
	/**
	 * @param accountID
	 * @param accountName
	 * @param accountPassword
	 * @param position
	 * @param autDTO
	 */
	public AuthenticationDTO(int accountID, String accountName,
			
			String accountPassword, String position, int authorID) {
		this.accountID = accountID;
		this.accountName = accountName;
		this.accountPassword = accountPassword;
		this.position = position;
		autDTO= new AuthorDTO();
		autDTO.setAuthorID(authorID);
		
	}

	/**
	 * @param accountID
	 * @param accountName
	 * @param accountPassword
	 * @param position
	 */
	public AuthenticationDTO(int accountID, String accountName,
			String accountPassword, String position) {
		this.accountID = accountID;
		this.accountName = accountName;
		this.accountPassword = accountPassword;
		this.position = position;
	}
	public AuthenticationDTO(String accountName,String accountPassword){
		this.accountName = accountName;
		this.accountPassword = accountPassword;
	}
	public AuthenticationDTO(String accountName,String accountPassword, String position){
		this.accountName = accountName;
		this.accountPassword = accountPassword;
		this.position = position;
	}
	
	/**
	 * @return the autDTO
	 */
	public AuthorDTO getAutDTO() {
		return autDTO;
	}
	/**
	 * @param autDTO the autDTO to set
	 */
	public void setAutDTO(AuthorDTO autDTO) {
		this.autDTO = autDTO;
	}
	/**
	 * @return the accountID
	 */
	public int getAccountID() {
		return accountID;
	}

	/**
	 * @param accountID the accountID to set
	 */
	public void setAccountID(int accountID) {
		this.accountID = accountID;
	}

	/**
	 * @return the accountName
	 */
	public String getAccountName() {
		return accountName;
	}

	/**
	 * @param accountName the accountName to set
	 */
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	/**
	 * @return the accountPassword
	 */
	public String getAccountPassword() {
		return accountPassword;
	}

	/**
	 * @param accountPassword the accountPassword to set
	 */
	public void setAccountPassword(String accountPassword) {
		this.accountPassword = accountPassword;
	}

	/**
	 * @return the position
	 */
	public String getPosition() {
		return position;
	}

	/**
	 * @param position the position to set
	 */
	public void setPosition(String position) {
		this.position = position;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "AuthenticationDTO [accountID=" + accountID + ", accountName="
				+ accountName + ", accountPassword=" + accountPassword
				+ ", position=" + position + "]";
	}
}
